<?php

// appel du header
require_once('./include/header.php');

if ( $_user->isLogged() ) {

    $template->set_filenames(array(
            'body' => 'accueil.tpl'
    ));

    $template->assign_var('TITLE', 'Mutualisation Projet - Accueil');
    $template->assign_var('CSS_PAGE', './style/css/accueil.css');

    $template->pparse('header');
    $template->pparse('body');
    $template->pparse('footer');

} else {
    header("Location: ./401.php");
}

// appel du footer
require_once('./include/footer.php');

?>
